import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: null,
    navIndex: "0",
  },
  mutations: {
    setUserInfo(state, data) {
      state.userInfo = data
    },
    setNavIndex(state, data) {
      state.navIndex = data
    },
  },
  actions: {},
  modules: {}
})
